﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;


namespace RecruitStudents.Utility.Model.NMT
{
    [Serializable]
    public  class NMT_TB_RecruitStudentsInfo_ProvinceRecruitStudentsInfo: Entity
    {
        public NMT_TB_RecruitStudentsInfo_ProvinceRecruitStudentsInfo() : base("NMT_TB_RecruitStudentsInfo_ProvinceRecruitStudentsInfo") { }

        #region Model
        private string _ProvinceNO;
        private string _RecruitStudentsInfo_Col;
        private string _Mapping_Col;
        private string _InputUser;
        private DateTime? _InputTime;
        /// <summary>
        /// 
        /// </summary>
        public string ProvinceNO
        {
            get { return _ProvinceNO; }
            set
            {
                this.OnPropertyValueChange(_.ProvinceNO, _ProvinceNO, value);
                this._ProvinceNO = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string RecruitStudentsInfo_Col
        {
            get { return _RecruitStudentsInfo_Col; }
            set
            {
                this.OnPropertyValueChange(_.RecruitStudentsInfo_Col, _RecruitStudentsInfo_Col, value);
                this._RecruitStudentsInfo_Col = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Mapping_Col
        {
            get { return _Mapping_Col; }
            set
            {
                this.OnPropertyValueChange(_.Mapping_Col, _Mapping_Col, value);
                this._Mapping_Col = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string InputUser
        {
            get { return _InputUser; }
            set
            {
                this.OnPropertyValueChange(_.InputUser, _InputUser, value);
                this._InputUser = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? InputTime
        {
            get { return _InputTime; }
            set
            {
                this.OnPropertyValueChange(_.InputTime, _InputTime, value);
                this._InputTime = value;
            }
        }
        #endregion

        #region Method
        /// <summary>
        /// 获取实体中的主键列
        /// </summary>
        public override Field[] GetPrimaryKeyFields()
        {
            return new Field[] {
                _.ProvinceNO,
                _.RecruitStudentsInfo_Col};
        }
        /// <summary>
        /// 获取列信息
        /// </summary>
        public override Field[] GetFields()
        {
            return new Field[] {
                _.ProvinceNO,
                _.RecruitStudentsInfo_Col,
                _.Mapping_Col,
                _.InputUser,
                _.InputTime};
        }
        /// <summary>
        /// 获取值信息
        /// </summary>
        public override object[] GetValues()
        {
            return new object[] {
                this._ProvinceNO,
                this._RecruitStudentsInfo_Col,
                this._Mapping_Col,
                this._InputUser,
                this._InputTime};
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(IDataReader reader)
        {
            this._ProvinceNO = DataUtils.ConvertValue<string>(reader["ProvinceNO"]);
            this._RecruitStudentsInfo_Col = DataUtils.ConvertValue<string>(reader["RecruitStudentsInfo_Col"]);
            this._Mapping_Col = DataUtils.ConvertValue<string>(reader["Mapping_Col"]);
            this._InputUser = DataUtils.ConvertValue<string>(reader["InputUser"]);
            this._InputTime = DataUtils.ConvertValue<DateTime?>(reader["InputTime"]);
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(DataRow row)
        {
            this._ProvinceNO = DataUtils.ConvertValue<string>(row["ProvinceNO"]);
            this._RecruitStudentsInfo_Col = DataUtils.ConvertValue<string>(row["RecruitStudentsInfo_Col"]);
            this._Mapping_Col = DataUtils.ConvertValue<string>(row["Mapping_Col"]);
            this._InputUser = DataUtils.ConvertValue<string>(row["InputUser"]);
            this._InputTime = DataUtils.ConvertValue<DateTime?>(row["InputTime"]);
        }
        #endregion

        #region _Field
        /// <summary>
        /// 字段信息
        /// </summary>
        public class _
        {
            /// <summary>
            /// * 
            /// </summary>
            public readonly static Field All = new Field("*", "NMT_TB_RecruitStudentsInfo_ProvinceRecruitStudentsInfo");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field ProvinceNO = new Field("ProvinceNO", "NMT_TB_RecruitStudentsInfo_ProvinceRecruitStudentsInfo", "ProvinceNO");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field RecruitStudentsInfo_Col = new Field("RecruitStudentsInfo_Col", "NMT_TB_RecruitStudentsInfo_ProvinceRecruitStudentsInfo", "RecruitStudentsInfo_Col");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field Mapping_Col = new Field("Mapping_Col", "NMT_TB_RecruitStudentsInfo_ProvinceRecruitStudentsInfo", "Mapping_Col");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field InputUser = new Field("InputUser", "NMT_TB_RecruitStudentsInfo_ProvinceRecruitStudentsInfo", "InputUser");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field InputTime = new Field("InputTime", "NMT_TB_RecruitStudentsInfo_ProvinceRecruitStudentsInfo", "InputTime");
        }
        #endregion


    }
}

